<!DOCTYPE html>
<html lang="zh-cn">
<!--包含头部-->
{{include file="{{$smarty.const.APP_PATH}}Home/View/Public/header.html"}}
<body>
<div class="lefter">
    <div class="logo"><a href="/"><img src="/images/logo.png" alt="后台管理系统" /></a></div>
</div>
<div class="righter nav-navicon" id="admin-nav">
    <div class="mainer">
        <!--导航-->
        {{include file="{{$smarty.const.APP_PATH}}Home/View/Public/nav.html"}}
        <div class="admin-bread">
            <span>您好，admin，欢迎您的光临。</span>
            <ul class="bread">
                <li><a href="index.html" class="icon-cog">文章管理</a></li>
                <li>编辑文章</li>
            </ul>
        </div>
    </div>
</div>

<div class="admin">

    <div class="tab">
        <div class="padding border-bottom">
            <!--<input type="button" class="button active button-small" value="编辑分类" />-->
            <input type="button" class="button button-small border-yellow" value="分类列表" onclick="javascript:window.location.href='/article/index/category'"/>
        </div>
        <div class="tab-body">
            <br />
            <div class="tab-panel active" id="tab-set">
                <form method="post" class="form-x" action="/article/index/category_add_post">
                    <div class="form-group">
                        <div class="label"><label for="category_parent_id">所属分类:</label></div>
                        <div class="field">
                            <select id="category_parent_id" name="category_parent_id">
                                <option value="0">顶级目录</option>
                                {{foreach from=$parent_category_list item=i}}
                                <option value="{{$i.category_id}}">-->{{$i.category_name}}</option>
                                {{/foreach}}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="label"><label for="category_name">分类名称</label></div>
                        <div class="field">
                            <input type="text" class="input input-auto" id="category_name" name="category_name" size="50" placeholder="分类名称" data-validate="required:请填写分类名称" value="" />
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="label"><label for="category_sort">分类排序</label></div>
                        <div class="field">
                            <input type="text" class="input input-auto" id="category_sort" name="category_sort" size="50" placeholder="分类排序" data-validate="required:请填写分类排序" value="999" />
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="label">
                            <label>是否显示</label>
                        </div>
                        <div class="field">
                            <div class="button-group button-group-small radio">
                                <label class="button active" >
                                    <input name="category_show" value="1" type="radio" checked="checked"><span class="icon icon-check"></span>显示
                                </label>
                                <label class="button">
                                    <input name="category_show" value="2" type="radio"><span class="icon icon-times"></span>隐藏
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-button"><button class="button bg-main" type="submit">提交</button></div>
                </form>
            </div>
        </div>
    </div>
    <!--包含底部-->
    {{include file="{{$smarty.const.APP_PATH}}Home/View/Public/footer.html"}}
</div>
<div class="hidden"><script src="#" language="JavaScript"></script></div>
</body>
</html>